*/
class BlockTest extends MediaWikiLangTestCase {
- const REASON = "Some reason";
-
private $block, $madeAt;
/* variable used to save up the blockID we insert in this test suite */
}
$this->block = new Block( 'UTBlockee', 1, 0,
- self::REASON
+ 'Parce que'
);
$this->madeAt = wfTimestamp( TS_MW );
// $this->dumpBlocks();
$this->assertTrue( $this->block->equals( Block::newFromTarget('UTBlockee') ), "newFromTarget() returns the same block as the one that was made");
-
+
$this->assertTrue( $this->block->equals( Block::newFromID( $this->blockId ) ), "newFromID() returns the same block as the one that was made");
}
$data = $this->doApiRequest( array(
'action' => 'block',
'user' => 'UTBlockee',
- 'reason' => BlockTest::REASON,
+ 'reason' => 'Some reason',
'token' => $pageinfo['blocktoken'] ), $data );
$block = Block::newFromTarget('UTBlockee');